package com.qf.controller;

import com.qf.pojo.respVo.BaseResp;
import com.qf.service.PortalService;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/portal")
@RestController
public class RotationController {


    @Autowired
    PortalService portalService;
    /**
     * 轮播图
     * @return
     */
    @RequestMapping(value = "/findRatation",method = RequestMethod.POST)
    public BaseResp findAll(){
        return portalService.findRatation();
    }
}
